import junit.framework.TestCase;

public class TestInventoryController extends TestCase {
        public void testaddNewItem() {
                InventoryModel imodel = new InventoryModel();
                InventoryController ic = new InventoryController(imodel);
                ic.addNewItem("Food", 0);
                int expectedResults = 0;
                ic.addNewItem("Clothes", 0);
                ic.addNewItem("Wheels", 0);
                assertEquals(expectedResults, ic.getQuantityOfItem("Food"));
                assertEquals(0, ic.getQuantityOfItem("Clothes"));
                assertEquals(0, ic.getQuantityOfItem("Wheels"));
        }

}